package org.elasticsearch.rest.action.document;

import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.rest.BaseRestHandler;
import org.elasticsearch.rest.RestController;
import org.elasticsearch.rest.RestRequest;

import java.io.IOException;

public class RestGetAction extends BaseRestHandler {

    public RestGetAction(final Settings settings, final RestController controller) {
        super(settings);
        controller.registerHandler(RestRequest.Method.GET, "/{index}/{type}/{id}", this);
        controller.registerHandler(RestRequest.Method.HEAD, "/{index}/{type}/{id}", this);
    }



    @Override
    public RestChannelConsumer prepareRequest(final RestRequest request) throws IOException {
        String index = request.param("index");
        String type = request.param("type");
        String id = request.param("id");
        return null;
    }

}

